<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>正则表达式</title>
		<script>
			var str="教育改变生活，气度决定成就";
			var ar=str.split("，");
			alert(ar.length);
			alert(ar.join("$"));
			var s2="你好aabc独立开发ff水电费hh大狗ooo斯柯达sdlkf老吴";
			var a3=s2.split(/[a-z]+/);
			alert(a3.length);
			alert(a3.join("#"));
		</script>
	</head>
	<body>
	</body>
</html>